$(function(){
	$("#mainTable").datagrid({
		buttons:[{
			text:'Close',
			handler:function(){

			}
		}]
		,
		onDblClickRow : function(index, row){
			 $('#adialog').dialog('open');
		}
	});
	$("#adialog").dialog({
		closed: true,
		buttons: [{
			text:'Close',
			handler:function(){
				$('#adialog').dialog('close')
			}
		}]
	});
})